﻿//定义全局量
function admingrictj() {
	var ur = ""; //来源地址
	var urp = new Array(); //来源参数名称
	var urpv = new Array(); //来源参数值
	var reurp = new Array(); //来源参数名称
	var reurpv = new Array(); //来源参数值
	var arrayCount = 0; //参数数目
	var rearrayCount = 0; //参数数目
	pageOpen = new Date(); //进入页面的时间
	var reqURL = "http://58.83.226.180/Receive/"; //接收数据的页面地址
	var GUID = pageOpen.getTime()*1000000+Math.round(Math.random() * 999999); //用户唯一随机数
             
	//var GUID = Math.round(Math.random() * 2147483647); //用户唯一随机数
	var title = document.title; //网页标题
	var uexp = pageOpen.getTime() + (1000 * 60 * 60 * 24 * 30*30); //设置cookie过期时间 既回访用户的限定
	var rtu = "false"; //指示用户是否回访用户
	var sessionguid = Math.round(Math.random() * 2147483647);
	var UserID; //UserID
	var host;
	//浏览器特征信息
	var brower = new Array();
	/*
* brower[0] 浏览器类型
* brower[1] 浏览器版本
* brower[2] 浏览器java是否打开 1开-1关
* brower[3] 浏览器flash版本
* brower[4] 浏览器操作系统
* brower[5] 浏览器分辨率
* brower[6] 浏览器色深
* brower[7] 浏览器语言
* brower[8] 浏览器插件
*/
	var sEn = new Array(); //搜索引擎的名称
	var keyWord = new Array(); //关键字传输形式
	sEn = ["baidu.com", "baidu.com", "google.com", "google.cn", "google.com.hk", "sogou.com", "zhongsou.com", "search.yahoo.com", "one.cn.yahoo.com", "soso.com", "114search.118114.cn", "search.live.com", "youdao.com", "gougou.com", "bing.com"];
	keyWord = ["word", "wd", "q", "q", "q", "query", "w", "p", "p", "w", "kw", "q", "q", "search", "q"];

	//test data----------------------------//////////////////////////////-----------/-/-/-/-/-/-/-/-/-/-/-
	//sEn[22]="localhost";	keyWord[22]="q";
	var _this = this;
	//--------把中文字符转换成Utf8编码------------------------//  
	admingrictj.prototype.EncodeUtf8 = function(s1)

	{

		var s = escape(s1);

		var sa = s.split("%");

		var retV = "";

		if (sa[0] != "")

		{

			retV = sa[0];

		}

		for (var i = 1; i < sa.length; i++)

		{

			if (sa[i].substring(0, 1) == "u")

			{

				retV += (_this.Hex2Utf8(_this.Str2Hex(sa[i].substring(1, 5)))+sa[i].substring(5, sa[i].length));

			}

			else retV += "%" + sa[i];

		}

		return retV;

	}

	admingrictj.prototype.Str2Hex = function(s)

	{

		var c = "";

		var n;

		var ss = "0123456789ABCDEF";

		var digS = "";

		for (var i = 0; i < s.length; i++)

		{

			c = s.charAt(i);

			n = ss.indexOf(c);

			digS += _this.Dec2Dig(eval(n));

		}

		//return value;  
		return digS;

	}

	admingrictj.prototype.Dec2Dig = function(n1)

	{

		var s = "";

		var n2 = 0;

		for (var i = 0; i < 4; i++)

		{

			n2 = Math.pow(2, 3 - i);

			if (n1 >= n2)

			{

				s += '1';

				n1 = n1 - n2;

			}

			else

			s += '0';

		}

		return s;

	}

	admingrictj.prototype.Dig2Dec = function(s)

	{

		var retV = 0;

		if (s.length == 4)

		{

			for (var i = 0; i < 4; i++)

			{

				retV += eval(s.charAt(i)) * Math.pow(2, 3 - i);

			}

			return retV;

		}

		return - 1;

	}

	admingrictj.prototype.Hex2Utf8 = function(s)

	{

		var retS = "";

		var tempS = "";

		var ss = "";

		if (s.length == 16)

		{

			tempS = "1110" + s.substring(0, 4);
			tempS += "10" + s.substring(4, 10);
			tempS += "10" + s.substring(10, 16);
			var sss = "0123456789ABCDEF";
			for (var i = 0; i < 3; i++)
			{
				retS += "%";
				ss = tempS.substring(i * 8, (eval(i) + 1) * 8);
				retS += sss.charAt(_this.Dig2Dec(ss.substring(0, 4)));
				retS += sss.charAt(_this.Dig2Dec(ss.substring(4, 8)));
			}
			return retS;
		}

		return "";
	}

	//-----------------------------比较url,如果为搜索引擎则保存关键字-------------
	admingrictj.prototype.getKeyword = function(url) {
		var hostname = url;
		if(url.toLowerCase()=="cpro.baidu.com")
		{
			return "";
		}
		for (var i = 0; i < sEn.length; i++) {
			if (hostname.toLowerCase().indexOf(sEn[i]) >= 0) {
				for (var j = 0; j < reurp.length; j++) {
					if (reurp[j].toLowerCase() == keyWord[i]) {
						return _this.EncodeUtf8(reurpv[j]);
					}
				}
			}
		}

		return "";
	}
	//将URL转换为地址和页面参数和参数值 参数uri为页面地址
	admingrictj.prototype.gethn = function(uri, t_urp, t_urpv) {
		if (!uri || uri == "") return "";
		ur = uri;
		var sub;
		var i = 0;
		//带参数
		if (ur.indexOf("?") != -1) {
			var url = ur.substring(0, ur.indexOf("?"));
			var para = ur.substring(ur.indexOf("?") + 1, ur.length);
			while (para.length > 0) {
				if (para.indexOf("&") == -1) {
					t_urp[i] = para.substring(0, para.indexOf("="));
					t_urpv[i] = para.substring(para.indexOf("=") + 1, para.length);
					break;
				}
				sub = para.substring(0, para.indexOf("&"));
				t_urp[i] = sub.substring(0, sub.indexOf("="));
				t_urpv[i] = sub.substring(sub.indexOf("=") + 1, sub.length);
				para = para.substring(para.indexOf("&") + 1, para.length);
				i++;
			}
			return url;
		} else return ur;
	}

	//----------------------------获得域名---------------------------------------------
	admingrictj.prototype.getHostName = function(url) {
		url = url.substring(url.indexOf('://') + 3, url.length);
		url = url.substring(0, url.indexOf("/"));
		return url;
	}

	//---------------------------获得flash版本------------------------------------------
	admingrictj.prototype.getFlash = function() {
		var f = "-1",
		n = navigator;
		if (n.plugins && n.plugins.length) {
			for (var ii = 0; ii < n.plugins.length; ii++) {
				if (n.plugins[ii].name.indexOf('Shockwave Flash') != -1) {
					f = n.plugins[ii].description.split('Shockwave Flash ')[1];
					break;
				}
			}
		} else if (window.ActiveXObject) {
			for (var ii = 10; ii >= 2; ii--) {
				try {
					var fl = eval("new ActiveXObject('ShockwaveFlash.ShockwaveFlash." + ii + "');");
					if (fl) {
						f = ii + '.0';
						break;
					}
				} catch(e) {}
			}
		}
		if (f == "-1") return f;
		else return f.substring(0, f.indexOf(".") + 2);
	}

	admingrictj.prototype.getparam = function(pname) {
		var repvalue;
		for (var i = 0; i < urp.length; i++) {
			if (urp[i] == pname) {
				repvalue = urpv[i];
			}
		}
		return repvalue;

	}
	//--------------------------设置异步传输停留时间-----------------------------------
	admingrictj.prototype.createXMLHttpRequest = function() {
		if (window.XMLHttpRequest) {
			return new XMLHttpRequest();
		} else if (window.ActiveXObject) {
			return new ActiveXObject("Microsoft.XMLHttp");
		}
	}

	admingrictj.prototype.GetResidentTime = function() {

                _this.setCookie("admingri_GUID", GUID);
		pageClose = new Date();

		minutes = (pageClose.getMinutes() - pageOpen.getMinutes());
		if (minutes < 0) {
			minutes = minutes + 60;
		}
		seconds = (pageClose.getSeconds() - pageOpen.getSeconds());
		if (seconds < 0) {
			seconds += 60;
		}
		time = (seconds + (minutes * 60));
		time = (pageClose.getTime() - pageOpen.getTime());

		//----------------------------图片形式传递-------------------------------------------------------
		var i = new Image(1, 1);
		i.src = reqURL + "default.php?" + _this.pageView() + "&st=" + time;
		setTimeout(function(){},1000); 
		i.onload = function() {
			LoadVoid();
		}
	}
	admingrictj.prototype.LoadVoid = function() {
		return;
	}

//
admingrictj.prototype.SendEndGetResidentTime = function() {
		pageClose = new Date();

		minutes = (pageClose.getMinutes() - pageOpen.getMinutes());
		if (minutes < 0) {
			minutes = minutes + 60;
		}
		seconds = (pageClose.getSeconds() - pageOpen.getSeconds());
		if (seconds < 0) {
			seconds += 60;
		}
		time = (seconds + (minutes * 60));
		time = (pageClose.getTime() - pageOpen.getTime());
			
                 var i = new Image(1, 1);
		i.src = reqURL + "insertEndpv.php?" + _this.pageView() + "&st=" + time;
		setTimeout(function(){},1000); 
		i.onload = function() {
				LoadVoid();
			}		
	}
	admingrictj.prototype.LoadVoid = function() {
		return;
	}



	//-----------------------------取得第一次浏览网站参数字符串----------------------------------------
	admingrictj.prototype.StrPara = function() {
		//获得浏览器信息
		_this.BrowserInfo();
		//地址
		var para = "";
		para += "url=" + _this.getHostName(_this.gethn(document.referrer, reurp, reurpv)) + "&";
		if (para == "url=&") para = "";
		//参数        
		var _reurp = "reurp=";
		//para += "reurp=";
		for (var j = 0; j < reurp.length; j++) {
			_reurp += _this.EncodeUtf8(reurp[j]) + ",";
		}
		_reurp = _reurp.substring(0, _reurp.length - 1) + "&";
		if (_reurp == "reurp&") _reurp = "";
		//para += _reurp;//来源参数

		var _reurpv = "reurpv=";

		for (var i = 0; i < reurpv.length; i++) {
			_reurpv += _this.EncodeUtf8(reurpv[i]) + ",";
		}
		_reurpv = _reurpv.substring(0, _reurpv.length - 1) + "&";
		if (_reurpv == "reurpv&") _reurpv = "";
		//para += _reurpv;//来源参数
		//关键字    
		para += "keyWord=" + _this.getKeyword(_this.getHostName(_this.gethn(document.referrer, reurp, reurpv)));

		//para += "bType=" + brower[0] + "&";
		//para += "bVersion=" + brower[1] + "&";
		//para += "bJava=" + brower[2] + "&";
		//para += "bFlash=" + brower[3] + "&";
		//para += "bOS=" + brower[4] + "&";
		//para += "bScr=" + brower[5] + "&";
		//para += "bColor=" + brower[6] + "&";
		//para += "bHl=" + brower[7] + "&";
		//para += "bPlugin=" + brower[8];
		return para;
	}

	//-----------------------用户非第一次浏览网站----------------------------
	admingrictj.prototype.pageView = function() {
		var para = _this.StrPara() + "&";
		var strTmp = "";
		//获得当前地址
		strTmp = "cur=" + _this.getHostName(_this.gethn(_this.getHref(), urp, urpv)) + "&";
		// host=strTmp;
		para += strTmp;
		//获得参数
		strTmp = "urp=";
		for (var j = 0; j < urp.length; j++) {
			strTmp += _this.EncodeUtf8(urp[j]) + ",";
		}
		strTmp = strTmp.substring(0, strTmp.length - 1) + "&";
		if (strTmp == "urp&") strTmp = "";
		para += strTmp;//目标参数

		strTmp = "urpv=";
		for (var i = 0; i < urpv.length; i++) {
			strTmp += _this.EncodeUtf8(urpv[i]) + ",";
		}
		strTmp = strTmp.substring(0, strTmp.length - 1) + "&";
		if (strTmp == "urpv&") strTmp = "";
		para += strTmp;//目标参数

		para += "GUID=" + GUID + "&";

		para += "pageOpen=" + pageOpen.getTime() + "&";
		para += "sessionguid=" + sessionguid + "&";
		para += "localherf=" + _this.EncodeUtf8(_this.getHref()) + "&";
		//para += "localherf=" + _this.EncodeUtf8(_this.getHref())+"&";
		if (document.referrer != null && document.referrer != "") {
			para += "referrer=" + _this.EncodeUtf8(document.referrer) + "&";
		}
		para += (UserID == null) ? "": ("UserID=" + _this.EncodeUtf8(UserID) + "&");
		para += (_this.getparam("utm_source") == null) ? "": ("utm_source=" + _this.EncodeUtf8(_this.getparam("utm_source")) + "&");
		para += (_this.getparam("utm_medium") == null) ? "": ("utm_medium=" + _this.EncodeUtf8(_this.getparam("utm_medium")) + "&");
		para += (_this.getparam("utm_term") == null) ? "": ("utm_term=" + _this.EncodeUtf8(_this.getparam("utm_term")) + "&");
		para += (_this.getparam("utm_content") == null) ? "": ("utm_content=" + _this.EncodeUtf8(_this.getparam("utm_content")) + "&");
		para += (_this.getparam("utm_campaign") == null) ? "": ("utm_campaign=" + _this.EncodeUtf8(_this.getparam("utm_campaign")) + "&");

		para += "title=" + _this.EncodeUtf8(title);
		return para;
	}

	//-----------------------------------------------------------------------------
	//是否回访用户
	admingrictj.prototype.isReturn = function() {
		//如果没有cookie,则为新的用户,设置初始cookie,用户GUID,初次到访时间.上次到访时间为本次
		if (_this.getCookieValue() == "noCookie") {
			_this.setCookie("GUID", GUID);
			_this.setCookie("lastTime", pageOpen.getTime());
			_this.setCookie("firstTime", pageOpen.getTime());
			return false;
		}

		//反之为回访,重设回访时间
		else {
			//若首次进入时间与当前时间比较超多一个月,则为新用户,针对回访用户
			if ((_this.getCookie("firstTime") + 1000 * 60 * 60 * 24 * 30) < pageOpen.getTime()) {
				_this.setCookie("GUID", GUID);
				_this.setCookie("lastTime", pageOpen.getTime());
				_this.setCookie("firstTime", pageOpen.getTime());
				return false;
			}
			//若首次访问时间小于一个月,大于一天,设为回访用户
			if ((_this.getCookie("lastTime") + 1000 * 60 * 60 * 24) > pageOpen.getTime()) {
				_this.setCookie("lastTime", pageOpen.getTime());
				return true;
			}

			return true;
		}
	}
	//-----------------------------------------------------------------------------
	//浏览器特征信息
	admingrictj.prototype.BrowserInfo = function() {
		brower[0] = navigator.appName;
		brower[7] = navigator.language;
		if (brower[0] == "Netscape") {
			var browerInfo = navigator.userAgent;
			brower[1] = browerInfo.substring(browerInfo.lastIndexOf(" ") + 1, browerInfo.length);
			brower[0] = brower[1].substring(0, brower[1].lastIndexOf("/"));
			brower[1] = browerInfo.substring(browerInfo.lastIndexOf("/") + 1, browerInfo.length);
			brower[7] = navigator.language;
		} else if (brower[0] == "Microsoft Internet Explorer") {
			brower[1] = navigator.userAgent.split(";")[1];
			brower[7] = navigator.userLanguage;
		}
		brower[2] = navigator.javaEnabled() ? 1 : -1;
		brower[3] = _this.getFlash();
		brower[4] = _this.getOS();

		if (self.screen) {
			sr = screen.width + "x" + screen.height;
			sc = screen.colorDepth + "-bit";
		} else if (self.java) {
			var j = java.awt.Toolkit.getDefaultToolkit();
			var s = j.getScreenSize();
			sr = s.width + "x" + s.height;
		}
		//分辨率
		brower[5] = sr;
		//色深
		brower[6] = sc;
		//插件列表
		brower[8] = _this.getPlugin();
	}

	//-----------------------获得当前地址-----------------------------
	admingrictj.prototype.getHref = function() {
		return document.location.href;
	}

	//-----------------------cookie操作开始-----------------------------------------------------------------------------------------------------------------
	admingrictj.prototype.setCookie = function(name, value)
	//设定Cookie值
	{
		var expdate = new Date();
		var argv = _this.setCookie.arguments;
		var argc = _this.setCookie.arguments.length;
		var expires = 15768000;
		var path = (argc > 3) ? argv[3] : null;
		var domain = (argc > 4) ? argv[4] : null;
		var secure = (argc > 5) ? argv[5] : false;
		//alert(domain);
		if (expires != null) {
			//设置过期时间24小时
			expdate.setTime(uexp);
			document.cookie = name + "=" + escape(value) + ((expires == null) ? "": ("; expires=" + expdate.toGMTString())) + ((path == null) ? "": ("; path=" + path)) + ((domain == null) ? "": ("; domain=" + domain)) + ((secure == true) ? "; secure=": "");
		}
	}

	admingrictj.prototype.delCookie = function(name)
	//删除Cookie
	{
		var exp = new Date();
		exp.setTime(exp.getTime() - 1);
		var cval = _this.getCookie(name);
		document.cookie = name + "=" + cval + "; expires=" + exp.toGMTString();
	}

	//获得Cookie的值
	admingrictj.prototype.getCookie = function(fname) {
		var name, value;
		var cookies = new Object();
		var beginning, middle, end;

		beginning = 0;
		while (beginning < document.cookie.length) {
			middle = document.cookie.indexOf("=", beginning);
			end = document.cookie.indexOf(";", beginning);

			if (end == -1) {
				end = document.cookie.length;
			}
			if ((middle > end) || (middle == -1)) {
				name = document.cookie.substring(beginning, end);
				value = "";
			} else {
				name = document.cookie.substring(beginning, middle);
				value = document.cookie.substring(middle + 1, end);
			}
			if (name == fname) {
				return unescape(value);
			}
			beginning = end + 2;
		}
	}

	//-----获取GUID的cookie是否存在获得---------------------------------------------------
	admingrictj.prototype.getCookieValue = function() {
		var guid = _this.getCookie("admingri_GUID");
		if (guid != null) {
			return guid;
		} else {
			return "noCookie";
		}
	}

	//---------------------获得注册用户cookie---------------------------------------------
	admingrictj.prototype.getRegUserCookie = function() {
		return;
	}
	//-----------------------------cookie 操作完毕------------------------------------------------------------------------------------------------------------
	//---------------------------得操作系统---------------------------
	admingrictj.prototype.getOS = function() {
		var OSlist = new Array();
		var OSName = new Array();
		OSlist[0] = " Windows4.0";
		OSName[0] = "Windows 95";
		OSlist[1] = " Windows 98";
		OSName[1] = "Windows 98";
		OSlist[2] = " Windows NT 5.0";
		OSName[2] = "Windows 2000";
		OSlist[3] = " Windows NT 5.1";
		OSName[3] = "Windows XP";
		OSlist[4] = " Windows NT 5.2";
		OSName[4] = "Windows Server 2003";
		OSlist[5] = " Windows NT 6.1";
		OSName[4] = "Windows 7";
		var ua = navigator.userAgent.split(";");
		for (var i = 0; i < OSlist.length; i++) {
			if (ua[2] == OSlist[i]) return OSName[i];
		}
		return ua[2];
	}

	//获得插件
	admingrictj.prototype.getPlugin = function() {
		var plugin = "";
		var ua = navigator.userAgent.split(";");
		if (ua.length < 4) return "";
		for (var i = 4; i < ua.length; i++) {
			plugin += ua[i] + ",";
		}
		return plugin.substring(0, plugin.length - 2);
	}

	admingrictj.prototype.setUserid = function(usid) {
		UserID = usid;

	}
	admingrictj.prototype.getUserid = function() {

		return UserID;
	}
	admingrictj.prototype.getGUID = function() {

		return GUID;
	}
	admingrictj.prototype.setGUID = function(usid) {
		GUID = usid;

	}
	admingrictj.prototype.sendorder = function(orderid,goodid, ordernum, orderprice, ordername, UserID,code) {

		var xmlHttp = _this.createXMLHttpRequest();
		host = "cur=" + _this.getHostName(_this.getHref()) + "&";
		var i = new Image(1, 1);
		i.src = reqURL + "order.php?adtommorrandom="+Math.round(Math.random() * 2147483647) + "&pageOpen=" + pageOpen.getTime() +"&"+ host + "sessionguid=" + sessionguid +"&goodid="+goodid+ "&GUID=" + GUID + "&orderid=" + orderid + "&ordernum=" + ordernum + "&orderprice=" + orderprice + "&code="+code+"&ordername=" + _this.EncodeUtf8(ordername) + (UserID == null ? "": "&UserID=" + UserID);
		setTimeout(function(){},1000); 
		i.onload = function() {
				LoadVoid();
			}


	}
	admingrictj.prototype.sendEvent = function(Event,EventType, EventTitle, Eventvalue) {

                var PostData="";
		PostData += (Event == null) ? "": ("Event=" +_this.EncodeUtf8(Event) + "&");
		PostData += (EventType == null) ? "": ("EventType=" +_this.EncodeUtf8(EventType) + "&");
		PostData += (EventTitle == null) ? "": ("EventTitle=" +_this.EncodeUtf8(EventTitle) + "&");
                PostData += (Eventvalue == null) ? "": ("Eventvalue=" +_this.EncodeUtf8(Eventvalue) + "&");

                PostData += "localherf=" + _this.EncodeUtf8(_this.getHref()) + "&";
		
		if (document.referrer != null && document.referrer != "") {
			PostData += "referrer=" + _this.EncodeUtf8(document.referrer) + "&";
		}
		host = "cur=" + _this.getHostName(_this.getHref()) + "&";
		var i = new Image(1, 1);
		i.src = reqURL + "insertEvent.php?" + "pageOpen=" + pageOpen.getTime() +"&"+ host + "sessionguid=" + sessionguid +"&"+PostData+ "GUID=" + GUID  + (UserID == null ? "": "&UserID=" + UserID);
		setTimeout(function(){},1000); 
		i.onload = function() {
				LoadVoid();
			}


	}

	admingrictj.prototype.sendKindyrooAdd = function(City,Kclasschanel) {

                var PostData="";
		PostData += (City == null) ? "": ("City=" +_this.EncodeUtf8(City) + "&");
		PostData += (Kclasschanel == null) ? "": ("Kclasschanel=" +_this.EncodeUtf8(Kclasschanel) + "&");

		var i = new Image(1, 1);
		host = "cur=" + _this.getHostName(_this.getHref()) + "&";
		i.src = reqURL + "insertKindyrooAdd.php?" + "pageOpen=" + pageOpen.getTime() +"&"+ host + "sessionguid=" + sessionguid +"&"+PostData+ "GUID=" + GUID;
		setTimeout(function(){},1000); 
		i.onload = function() {
				LoadVoid();
			}


	}
	admingrictj.prototype.sendKindyrooClass = function(City,ClassMid,Kclasschanel,Sex,Birthday) {

                var PostData="";
		PostData += (City == null) ? "": ("City=" +_this.EncodeUtf8(City) + "&");
		PostData += (ClassMid == null) ? "": ("ClassMid=" +_this.EncodeUtf8(ClassMid) + "&");
		PostData += (Kclasschanel == null) ? "": ("Kclasschanel=" +_this.EncodeUtf8(Kclasschanel) + "&");
		PostData += (Sex == null) ? "": ("Sex=" +_this.EncodeUtf8(Sex) + "&");
		PostData += (Birthday == null) ? "": ("Birthday=" +_this.EncodeUtf8(Birthday) + "&");
		var i = new Image(1, 1);
		host = "cur=" + _this.getHostName(_this.getHref()) + "&";

		i.src = reqURL + "insertKindyrooClass.php?" + "pageOpen=" + pageOpen.getTime() +"&"+ host + "sessionguid=" + sessionguid +"&"+PostData+ "GUID=" + GUID;
		setTimeout(function(){},1000); 
                i.onload = function() {
				LoadVoid();
			}
		


	}





}

var admingrictj1 = new admingrictj();
if (!admingri_GUID) {
	try {

		if (window.addEventListener) { //for W3C DOM
			window.addEventListener("beforeunload", admingrictj1.SendEndGetResidentTime, false);

		} else if (window.attachEvent) { //for IE
			window.attachEvent("onbeforeunload", admingrictj1.SendEndGetResidentTime);

		} else {

			window.onbeforeunload = admingrictj1.SendEndGetResidentTime;

		}
		//window.onunload = admingrictj1.GetResidentTime;
	} catch(e) {}

	var admingri_GUID;

	try {

		if (admingrictj1.getCookieValue() == "noCookie") {
		admingri_GUID = admingrictj1.getGUID();
		}
		else
		{
		admingri_GUID = admingrictj1.getCookieValue();
		}

//admingri_GUID = admingrictj1.getGUID();
		document.write(unescape("%3Cscript src='" + "http://" + "58.83.226.180/Receive/cookieguid.js?GUID=" + admingri_GUID + "' type='text/javascript'%3E%3C/script%3E"));
	} catch(e) {}


}



//document.write(reqURL + "Default.aspx?" + pageView());
